import Vue from 'vue'
import App from './App.vue'
import router from './router'
import locale from './locale'
import store from "./store";
import plugin from "./plugin";
Vue.use(plugin, { silent: true })
import Print from 'vue-print-nb'
Vue.use(Print); 
import i18n from './locale'


Vue.directive("limit", (el, data) => {
  let str = el.innerText
  if (str.length > data.value) {
    el.innerText = str.substring(0, data.value) + "..."
  }
})

export default {
}

new Vue({
  i18n,
  locale,
  store,
  render: h => h(App),
  router,
}).$mount('#app')

